package com.zhiyou100.service;

import com.zhiyou100.entity.Teacher;
import com.zhiyou100.mapper.TeacherMapper;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

/**
 * @author yang
 */
public interface TeacherService {

    void setMapper(TeacherMapper mapper);

    List<Teacher> getAll();

    Teacher getOneByTid(Integer tid);

    boolean deleteOneByTid(Integer tid);

    boolean updateOne(Teacher teacher);

    boolean addOne(Teacher teacher);

    boolean login(Integer tid,String tpwd);
}
